package com.sicong.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sicong.admin.entity.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author chenww
 * @since 2020-11-25
 */
public interface PermissionMapper extends BaseMapper<Permission> {

    /**
     * 通过角色id查询权限
     * @param roleIds 角色id
     * @return        权限集合
     */
    List<String> findPermissionsByRoleId(List<Long> roleIds);

}
